package com.wlk.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wlk.mapper.RoleMapper;
import com.wlk.pojo.Role;
import com.wlk.service.RoleService;
import com.wlk.utils.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Resource
    private RoleMapper roleMapper;
    @Override
    public Result getList() {
        return Result.ok(roleMapper.selectList(null));
    }
}
